package com.dogiant.weixin.yahoo.geocode;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "query")
public class Query {
	
	public Query() {
		super();
	}

	public Query(List<Result> results) {
		super();
		this.results = results;
	}

	private List<Result> results;

	@XmlElementWrapper(name="results")
    @XmlElement(name="Result")
	public List<Result> getResults() {
		return results;
	}

	public void setResults(List<Result> results) {
		this.results = results;
	}

	@Override
	public String toString() {
		return "Query [results=" + results + "]";
	}
	
}
